package com.shujia.mvc2;

import com.shujia.mvc2.controller.UserController;

import java.io.InputStream;
import java.util.Scanner;

public class Test1Login {
    public static void main(String[] args) {

        //1、输入用户名和密码

        //控制台输入流
        InputStream in = System.in;

        //包装流
        Scanner scanner = new Scanner(in);

        System.out.println("请输入用户名:");
        String username = scanner.next();

        System.out.println("请输入密码:");
        String password = scanner.next();

        System.out.println(username + "\t" + password);

        //调用控制层的登录方法
        UserController demo1Controller = new UserController();

        String login = demo1Controller.login(username, password);

        System.out.println(login);
    }
}
